package net.lee.springbootvertx;

import io.vertx.core.Vertx;
import net.lee.springbootvertx.vertx.config.VertxStart;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class SpringBootVertxApplication {

	public static void main(String[] args) {

		ApplicationContext context = SpringApplication.run(SpringBootVertxApplication.class, args);

		//FutureFactory factory = ServiceHelper.loadFactory(FutureFactory.class);
		//Future<Void> future = factory.future();

		Vertx vertx = Vertx.vertx();
		vertx.deployVerticle(context.getBean(VertxStart.class));


	}
}
